package com.nzw.pojo.integral;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2018\3\10 0010.
 *
 * 积分记录实体类
 */

@Table(name = "t_integral")
public class Integral {

    private Long id;            //id
    private Long userId;        //用户id
    private Long companyId;     //企业id
    private Long shopId;        //门店id
    private String title;       //标题
    private String name;        //加油站名称
    private Boolean state;      //true_充值  false_消费
    private Integer integral;   //获得积分
    private Date createDate;    //创建时间
    private Integer orgIntegral;   //原积分数





    @Column(name = "shopId")
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "userId")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "state")
    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    @Column(name = "integral")
    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }


    @Column(name = "createDate")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name = "orgIntegral")
    public Integer getOrgIntegral() {
        return orgIntegral;
    }

    public void setOrgIntegral(Integer orgIntegral) {
        this.orgIntegral = orgIntegral;
    }


}
